package com.junit_;

public class Demo1 {
    // 阶乘
    public static long fact(long n) {
        long r = 1;
        for (long i = 1; i <= n; i++) {
            r *= i;
        }
        return r;
    }
}
